public class Main {
    public static void main(String[] args) throws InterruptedException  {
        Baby b = new Baby();
//		Mother m = new Mother();
		Father f = new Father();

//		b.myMother = m;
//		b.myFather = f;

		b.feedMan = f;

        while(b.isAlive())
        {
            // 饥饿度增加
            b.setHungry(b.getHungry()+10);
            System.out.println("婴儿的饥饿度:"+b.getHungry());

            // 等待500ms
            Thread.sleep(500);
        }
    }
}